package com.david.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: Secondskill-Demo
 * @description: 测试页面跳转
 * @author: David
 * @version:
 * @create: 2022-04-11 16:56
 **/
@Controller
@RequestMapping("/demo")
public class DemoController {

    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("name","david");
        return "hello";
    }
}
